package com.hanko.oauth.servcie.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.hanko.oauth.entity.SysMenu;
import com.hanko.oauth.mapper.SysMenuMapper;
import com.hanko.oauth.servcie.PermissionService;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Mr.Yangxiufeng
 * Date: 2018-05-10
 * Time: 19:57
 */

@Service
public class PermissionServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements PermissionService {

    @Override
    public List<SysMenu> getPermissionsByRoleId(Integer userId) {
        return baseMapper.getPermissionsByRoleId(userId);
    }
}

